#pragma once

#include "IJsonSerializable.h"

class TrayConfig : public IJsonSerializable
{
public:
    // 托盘编号
    QString trayNo;
    int imageWidth = 0;
    int imageHeight = 0;
    int cols = 10;
    int rows = 10;
    int startPosX = 20;
    int startPosY = 20;
    int areaWidth = 100;
    int areaHeight = 80;
    int gapX = 10;
    int gapY = 10;

public: // IJsonSerializable
    void fromJson(const QJsonObject& src, QStringList& errorList) override;
    QJsonObject toJson() const override;
};
